{% extends "base.html" %}


{% block title %}
筛选结果
{% endblock %}

{% block screen %}
active
{% endblock %}
{% block body %}
<table>
    <tr>
        <td>姓名</td>
        <td>性别</td>
        <td>年龄</td>
        <td>图片</td>
        <td>年收入</td>
        <td>婚姻状况</td>
        <td>子女</td>
        <td>房产</td>
        <td>进行操作</td>
    </tr>
    <tr>
        {% for u in res %}
            <td>{{ u.name }}</td>
            <td>{{ u.sex }}</td>
            <td>{{ u.age }}</td>
            <td><a href="http://127.0.0.1:8000/media/{{ u.photo }}">点此查看</a></td>
            <td>{{ u.money }}</td>
            <td>{{ u.married }}</td>
            <td>{{ u.children }}</td>
            <td>{{ u.house }}</td>
            <td><a href="{% url "collect_r" cid=u.id %}">收藏</a></td>
        {% endfor %}
    </tr>
{% endblock %}

{% block head %}
    <style>
        td{
            width: 128px;
            height: 30px;
            text-align: center
        }
    </style>
{% endblock %}